package lab03;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.io.*;

/**
 * Created by Administrator on 2017/11/16.
 */
public class Test02 {
    public static void main(String[] args) throws IOException {
        String path = "D:\\hello.text";
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new FileReader(path));
            String line = null;
           while(((line=reader.readLine()))!=null) {
               System.out.println(line);
           }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

}